package com.geovis.emergency.spd.entity.basic.pojo.dto;


import com.geovis.common.file.dto.UploadDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 上传附件VO
 * </p>
 *
 * @author 王响
 * @since 2020-09-08
 */
@Getter
@Setter
@ToString(callSuper = true)
@ApiModel(value = "文件上传DTO对象", description = "文件上传DTO")
@EqualsAndHashCode(callSuper = true)
public class BasicMaterialUploadDTO extends UploadDTO {

    @NotBlank(message = "类型不能为空")
    @Length(max = 16, message = "类型最长不能超过{16}个字符")
    @ApiModelProperty(value = "类型",required = true)
    private String type;

    @Length(max = 255, message = "类型最长不能超过{255}个字符")
    @ApiModelProperty("标签 多个用逗号分开")
    private String tag;
}
